#!usr/bin/env python  
# -*- coding:utf-8 _*-
""" 
@author:robot
@file: path_operate.py 
@version:
@time: 2022/03/15 
"""
import os

path_joint = os.path.join
get_realpath = os.path.realpath
get_dirname = os.path.dirname


def get_grandfather_dirname(path, time=2):
    tmp = path
    for i in range(time):
        tmp = get_dirname(tmp)
    return tmp
